import request from '@/utils/request';
import { getCookie } from "@/utils/cookie";

export function authorize(scope) {
    const csrfToken = getCookie('csrfToken');
    return request({
        method: 'post',
        url: '/scope',
        data: {
            scope,
        },
        headers: {
            'x-csrf-token': csrfToken,
        },
    });
}
